package com.rc.pojo.po;

import com.mybatisflex.annotation.Column;
import com.mybatisflex.annotation.Id;
import com.mybatisflex.annotation.KeyType;
import com.mybatisflex.annotation.Table;
import com.rc.common.model.BaseUserEntity;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serial;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 *  实体类。
 *
 * @author 27806
 * @since 2024-07-01
 */
@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@Table(value = "ill", schema = "rc")
public class Ill implements BaseUserEntity, Serializable {

    @Serial
    private static final long serialVersionUID = 1L;

    @Id(keyType = KeyType.Auto)
    private Long id;

    private String name;

    private Integer plantId;

    private String description;

    private String cover;

    /**
     * 0病害 1虫害 2草害
     */
    private Integer type;

    @Column(onInsertValue = "now()")
    private LocalDateTime createTime;

    @Column(onInsertValue = "now()",onUpdateValue = "now()")
    private LocalDateTime updateTime;

    private Long createUser;

    private Long updateUser;

}
